#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
using namespace std;
#include<string>
#include<vector>
int main() {
    string bag_src;
    string bag_dst;
    cin >> bag_src;
    cin >> bag_dst;
    vector<int> hash;
    hash.resize(26);
    hash = { 0 }; int i; int j;
    for (i = 0; i < bag_src.size(); i++)
    {
        hash[bag_src[i] - 'A']++;
    }
    for (j = 0; j < bag_dst.size(); j++)
    {
        hash[bag_dst[j] - 'A']--;
    }
    int k = 0;
    for (k = 0; k < 26; k++)
    {
        if (hash[k] < 0)
        {
            cout << "No"; break;
        }
        else
        {
            cout << "Yes";
            break;
        }
    }
}